package com.duoo.pag.pag.ninepatch

import android.content.Context

import io.flutter.plugin.common.BinaryMessenger

import io.flutter.plugin.common.StandardMessageCodec
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory
class NinePatchViewFactory( val messenger: BinaryMessenger) :
    PlatformViewFactory(StandardMessageCodec.INSTANCE) {

    override fun create(context: Context, id: Int, args: Any?): PlatformView {
        val creationParams = args as? Map<String, Any>
        return NinePatchView(context, messenger, id, creationParams)
    }
}